package com.config;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName MyIRule
 * @Author Mr.Gao
 * @Date 2020/2/7 21:35
 * @Description:
 */
@Configuration
public class MyIRule  {

    @Bean
    public IRule getIRule() {
        return new MyRandomRule();
    }
}
